package com.link.base.core.basic.interceptors.mybatis.system;

import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.plugin.Invocation;
import org.springframework.stereotype.Service;

/**
 * @Author: qinxuegang
 * @Description:
 * @Date: 2018/11/1 11:51
 */
@Service("selectInterceptor")
public class SelectInterceptor implements SqlInterceptor {
    @Override
    public String doInterceptor(Invocation invocation, BoundSql boundSql) {
        return boundSql.getSql();
    }
}
